package com.numberone.master.modules.oa.dao;

import java.util.List;

import com.numberone.master.common.persistence.CrudDao;
import com.numberone.master.common.persistence.annotation.MyBatisDao;
import com.numberone.master.modules.api.entity.ApiAttach;
import com.numberone.master.modules.api.entity.ApiBean;
import com.numberone.master.modules.oa.entity.Operation;
import com.numberone.master.modules.oa.entity.WorkOrder;


@MyBatisDao
public interface WorkOrderDao  extends CrudDao<WorkOrder>{
	
	int insert(WorkOrder workOrder);

	List<WorkOrder> findPoolList(WorkOrder workOrder);
	
	List<WorkOrder> findAllList(WorkOrder workOrder,String operationUser);

	void updateReply(WorkOrder workOrder);

	void updateFiles(WorkOrder workOrder);
	
	void insertAttach(ApiAttach att);
	
	void insertBean(ApiBean bea);

	WorkOrder findBySerialNo(String serialNo);
	
	List<ApiAttach> getAttach(String id);
	
	Operation getLastNode(String id);
	
	List<ApiAttach> findAttachBySeriaNo(String serialNo);
	
	int deleteAttach(String id);
	
	int updateAttach(ApiAttach att);
}
